Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it didn't pass any test #3

Open
Firkraag opened this issue Apr 21, 2021 · 0 comments
Open

it didn't pass any test #3

Firkraag opened this issue Apr 21, 2021 · 0 comments

Comments

@Firkraag
Copy link

I ran make run command at project root directory to do automatic tests, and all tests failed.

Here's the content of result.out:
make[1]: Entering directory '/home/windheart/projects/E.L.F-Executable-Loader/test'
gcc -m32 -Wall -fno-pic -o run_test.o -c run_test.c
gcc -m32 -no-pie -L.. -Wl,-Ttext-segment=0x20000000 -o run_test run_test.o -lso_loader
make -C inputs
gcc -m32 -o hello.o -c hello.S
gcc -m32 -static -no-pie -nostdlib -o hello hello.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o sum.o -c sum.c
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -O2 -o lib.o -c lib.c
gcc -m32 -static -no-pie -nostdlib -o sum sum.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o bss.o -c bss.c
gcc -m32 -static -no-pie -nostdlib -o bss bss.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o data_bss.o -c data_bss.c
gcc -m32 -static -no-pie -nostdlib -o data_bss data_bss.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o no_perm.o -c no_perm.c
gcc -m32 -static -no-pie -nostdlib -o no_perm no_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o inv_perm.o -c inv_perm.c
gcc -m32 -static -no-pie -nostdlib -o inv_perm inv_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o check_perm.o -c check_perm.c
gcc -m32 -static -no-pie -nostdlib -o check_perm check_perm.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o check_exec.o -c check_exec.c
gcc -m32 -static -no-pie -nostdlib -o check_exec check_exec.o lib.o
gcc -m32 -Wall -fno-pic -fno-stack-protector -g -o qsort.o -c qsort.c
gcc -m32 -static -no-pie -o qsort qsort.o
'checkpatch.pl' tool not found on your system. Skipping source check...
Please download 'checkpatch.pl' from 'https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl' and install it in your $PATH.

  1. Sources check...........................................failed [ 0/95]
  2. Test simple execution...................................failed [ 0/95]
    Incorrect number of faults: got 2, expected 1
  3. Test hello..............................................failed [ 0/95]
    Incorrect number of faults: got 3, expected 2
  4. Test sum................................................failed [ 0/95]
    Incorrect number of faults: got 4, expected 3
  5. Test bss................................................failed [ 0/95]
    _test/outputs/test4.out vs _test/refs/test4.ref:
    --- _test/outputs/test4.out 2021-04-22 02:13:26.617432059 +0800
    +++ _test/refs/test4.ref 2021-04-18 16:05:59.833455109 +0800
    @@ -0,0 +1 @@
    +SUCCESS
    Incorrect number of faults: got 3, expected 2
  6. Test data and bss.......................................failed [ 0/95]
    _test/outputs/test5.out vs _test/refs/test5.ref:
    --- _test/outputs/test5.out 2021-04-22 02:13:26.637432605 +0800
    +++ _test/refs/test5.ref 2021-04-18 16:05:59.833455109 +0800
    @@ -0,0 +1 @@
    +SUCCESS
    Incorrect number of faults: got 4, expected 3
  7. Test no permissions.....................................failed [ 0/95]
    Incorrect number of faults: got 3, expected 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant