Skip to content

Commit

Permalink
Merge branch 'main' of github.com:YousefEZ/CongestionFRR into addBasi…
Browse files Browse the repository at this point in the history
…cCongestionPolicy

🔀 merge with origin main
  • Loading branch information
YousefEZ committed Mar 9, 2024
2 parents ff3dc05 + 4391e44 commit e674c43
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BasedOnStyle: llvm
IndentWidth: 4
UseTab: Never
BreakBeforeBraces: Linux
SortIncludes: false
IndentCaseLabels: false
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
PointerAlignment: Left
19 changes: 19 additions & 0 deletions .github/workflows/format-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'libs'
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: ${{ matrix.path }}
fallback-style: 'Mozilla' # optional
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
echo "Simulating ns3 on file: $1"

rm -rf traces/
mkdir traces
cp user_src/* scratch/

export NS_LOG=FRRQueue=level_all

./ns3 build
./ns3 run "scratch/$1" > traces/output.log 2>&1

./ns3 build
./ns3 run "scratch/$1" >traces/output.log 2>&1
1 change: 1 addition & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
find . -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\)' -exec clang-format -style=file -i {} \;

0 comments on commit e674c43

Please sign in to comment.