]> git.codecow.com Git - Monocypher.git/commitdiff
Fix speed tests
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 19 Feb 2023 17:26:16 +0000 (18:26 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 19 Feb 2023 17:39:21 +0000 (18:39 +0100)
.github/workflows/ci.yml
tests/speed/makefile

index 80edc0c5d427b8bd82a35850b64eb3135234bbee..3eb6852bf62ba0470d102cd0578261b7e2fab558 100644 (file)
@@ -102,7 +102,9 @@ jobs:
         run: make clean && make tis-ci -j4
 
       - name: Run speed tests
-        run: make clean && make speed -j4
+        run: |
+          cd tests/speed
+          make -j4
 
       - name: Run code coverage tests
         run: ./tests/coverage.sh
index 32d6559fbdf24e1d2357527ab7ae4b1e107aa460..c3098653717d3ac0800512fc5979aca588f6814f 100644 (file)
@@ -132,7 +132,7 @@ donna.o: ../externals/ed25519-donna/ed25519.c $(DONNA_HEADERS)
 ## Speed benchmarks ##
 ######################
 speed.o           : speed.c           speed.h ../utils.h
-       $(CC) -c $(CFLAGS) $< -o $@ -I ..
+       $(CC) -c $(CFLAGS) $< -o $@ -I .. -I ../../src/ -I ../../src/optional
 speed-sodium.o    : speed-sodium.c    speed.h ../utils.h
        $(CC) -c $(CFLAGS) $< -o $@ -I ..
 speed-hydrogen.o  : speed-hydrogen.c  speed.h ../utils.h