Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
dc1f3de
draft CI pipeline
pako-23 Apr 25, 2024
c4a0646
add testing on macos
pako-23 Apr 25, 2024
9fecb02
fix typo
pako-23 Apr 25, 2024
4f1951c
fix typo
pako-23 Apr 25, 2024
69bf35d
add runs-on property
pako-23 Apr 25, 2024
d835fc5
draft all malloc instrumentations
pako-23 Sep 2, 2024
5f2855a
refactor memory checks instrumentations
pako-23 Sep 4, 2024
984a51b
Improvements to the memory allocation features.
pako-23 Sep 5, 2024
ad2d5fa
Merge branch 'master' into github-actions
pako-23 Sep 6, 2024
9d46b6e
Update pipeline to introduce tests on ubuntu 22.04/24.04 and
pako-23 Sep 6, 2024
0582859
Fix tipy in Makefile
pako-23 Sep 6, 2024
84224a0
fix macos version, sorting lists in pipeline
pako-23 Sep 6, 2024
5bd0eb4
Merge branch 'new-instrumentation' into github-actions
pako-23 Sep 10, 2024
6a1857a
add _GNU_SOURCE
pako-23 Sep 10, 2024
a16b513
separate compile and link for tests, use CXX as linker
carzaniga Sep 10, 2024
8413c79
add -ldl to get dlsym
pako-23 Sep 10, 2024
e6259e1
Merge branch 'new-instrumentation' from github.com
carzaniga Sep 10, 2024
5c7df90
testing pipeline
pako-23 Sep 10, 2024
6147d24
reverting to no wrap flags for the linker.
carzaniga Sep 10, 2024
7c20842
testing pipeline
pako-23 Sep 10, 2024
0d1c782
merge new instrumentation
pako-23 Sep 10, 2024
e81c9e0
temporarly disable ubuntu-22
pako-23 Sep 10, 2024
35b7753
testing pipeline
pako-23 Sep 10, 2024
d79560d
testing pipeline
pako-23 Sep 10, 2024
5850bf5
testing pipeline
pako-23 Sep 10, 2024
f6e7090
add ubuntu 22.04 tests
pako-23 Sep 10, 2024
24cf999
testing pipeline
pako-23 Sep 10, 2024
a5009dd
testing pipeline
pako-23 Sep 10, 2024
ddeff0a
define _GNU_SOURCE to compile on ubuntu22.04
pako-23 Sep 11, 2024
faabd49
change PR configuration
pako-23 Sep 11, 2024
d1b8dc3
add macos-14
pako-23 Sep 11, 2024
969d4c7
debugging pipeline
pako-23 Sep 11, 2024
cfafd16
add c++11 standard to compile on MacOS
pako-23 Sep 11, 2024
209e889
testing macos memory instrumentation
pako-23 Sep 11, 2024
970c88f
testing builds on macos
pako-23 Sep 11, 2024
464fe4a
testing pipeline on macos
pako-23 Sep 11, 2024
1d85255
testing pipeline
pako-23 Sep 11, 2024
47bcd6d
improve test
pako-23 Sep 11, 2024
0c56383
extend memory allocation functions on macos
pako-23 Sep 11, 2024
1f8987c
wrap strdup in macos to detect leaks
pako-23 Sep 11, 2024
79392e5
Merge pull request #4 from usi-systems/github-actions
pako-23 Sep 11, 2024
4dd8361
Add set and change functions for memory budgets
pako-23 Sep 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: CI Pipeline


on:
push:
branches: [master]
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-13, macos-14, ubuntu-22.04, ubuntu-24.04]
compiler_suite: [clang, gcc]

steps:
- uses: actions/checkout@v4

- name: Run tests
run: |
if [ "${{ matrix.compiler_suite }}" = 'clang' ]; then
make CC=clang CXX=clang++ FAIL_FAST=yes PARALLELISM=4
elif [ "${{ matrix.compiler_suite }}" = 'gcc' ]; then
make CC=gcc CXX=g++ FAIL_FAST=yes PARALLELISM=4
fi
env:
TERM: xterm
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ex/**/basic_testing.h
ex ws/**/basic_testing.h
*.o
*.out
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Antonio Carzaniga
Pasquale Polverino
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
.PHONY: all
all: all-examples

FAIL_FAST ?= no
EXAMPLES = ex/example1 ex/example2 ex/example3 ex/example4 \
ex/example5 ex/example6 ex/example7 ex/example8 ex/memory_checks \
ex/example5 ex/example6 ex/example7 ex/example8 ex/memory_checks ex/memory_checks_cpp \
'ex ws/example1 ws' 'ex ws/example2 ws' 'ex ws/example3 ws' 'ex ws/example4 ws' \
'ex ws/example5 ws' 'ex ws/example6 ws' 'ex ws/example7 ws' 'ex ws/example8 ws'
PARALLELISM ?= 1

.PHONY: all-examples
all-examples:
@for ex in $(EXAMPLES); \
do test_result=PASS; \
cp -a basic_testing.h "$$ex"/tests ;\
$(MAKE) -C "$$ex" clean > /dev/null || test_result=FAIL; \
$(MAKE) -C "$$ex" TEST_COLORS=no > "$$ex".out 2>&1 || test_result=FAIL ; \
$(MAKE) -C "$$ex" -j $(PARALLELISM) TEST_COLORS=no > "$$ex".out 2>&1 || test_result=FAIL ; \
if test -r "$$ex".expected; \
then { IFS=''; while read l; \
do if grep -Fq "$$l" "$$ex".out; \
Expand All @@ -27,6 +29,9 @@ all-examples:
rm -f "$$ex".out; \
else echo "$$ex FAIL" ; \
echo "check '$$ex.out' and '$$ex.expected' to see what went wrong"; \
if [ "$(FAIL_FAST)" = "yes" ]; \
then exit 1; \
fi; \
fi; \
done

Expand Down
Loading