diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 8500031..714d620 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -4,9 +4,6 @@ jobs: build-images: runs-on: host-arch-x86_64 steps: - - name: Debug print - run: echo '${{ toJson(gitea) }}' - - name: Clone repository run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }} @@ -17,12 +14,9 @@ jobs: run-tests: runs-on: host-arch-x86_64 needs: build-images - #container: local/alpine-gcc:latest steps: - name: Clone repository run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }} - - run: ls -lh test5 - - name: Run tests run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.ref_name}}:latest diff --git a/f.c b/f.c index 64d58e5..18c3382 100644 --- a/f.c +++ b/f.c @@ -6,7 +6,7 @@ size_t free_counter; void * TEST_MALLOC(size_t size) { - printf("malloc'ed %lu\n", size); + //printf("malloc'ed %lu\n", size); malloc_counter += size; return malloc(size); @@ -15,7 +15,7 @@ void * TEST_MALLOC(size_t size) void TEST_FREE(void *p) { size_t s = malloc_usable_size(p); - printf("freed %lu\n", s); + //printf("freed %lu\n", s); free_counter += s; diff --git a/test.sh b/test.sh index c14bb92..4424c81 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,7 @@ #!/bin/sh -gcc f.c -o f -./f +export OPT=s && echo $OPT && gcc f.c -O$OPT -o f && ./f +export OPT=0 && echo $OPT && gcc f.c -O$OPT -o f && ./f +export OPT=1 && echo $OPT && gcc f.c -O$OPT -o f && ./f +export OPT=2 && echo $OPT && gcc f.c -O$OPT -o f && ./f +export OPT=3 && echo $OPT && gcc f.c -O$OPT -o f && ./f