Skip to content
github-actions edited this page Sep 4, 2022 · 89 revisions

Test results

Homework Name Task Name Test Name Result
Homework where things go wrong [PAST DEADLINE] Return number task Build succeeded
Wrong output format
While loop task Build succeeded
Test timeout
Homework with injections Bash with many folders ls
Google Tests Build succeeded
Just build
Inject pass
Inject fail
Sample homework Bash task Test output
Test wrong output
Build failure task Build succeeded
CMake build arithmetics task Build succeeded
Test integer arithmetics
Test float arithmetics
Simple cpp tasks Build succeeded
String output test
Input output test
Wrong output fail
Test input piping Build succeeded
Test input piping

Encountered errors

Homework where things go wrong

The deadline for this homework is exceeded. Errors hidden.


Homework where things go wrong

The deadline for this homework is exceeded. Errors hidden.


Homework with injections | Google Tests | Inject fail

stderr

CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


Errors while running CTest
Output from these tests are in: /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

stdout

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/runner/.local/share/virtualenvs/homework_checker-cR8O9fRx/bin/python (found version "3.8.13") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build
[ 10%] Building CXX object googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 20%] Linking CXX static library ../../lib/libgtest.a
[ 20%] Built target gtest
[ 30%] Building CXX object googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 40%] Building CXX object googletest/googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 50%] Linking CXX static library ../../lib/libgtest_main.a
[ 50%] Built target gtest_main
[ 60%] Building CXX object tests/CMakeFiles/my_tests.dir/test_dummy.cpp.o
[ 70%] Linking CXX executable my_tests
[ 70%] Built target my_tests
[ 80%] Linking CXX static library ../../lib/libgmock.a
[ 80%] Built target gmock
[ 90%] Building CXX object googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX static library ../../lib/libgmock_main.a
[100%] Built target gmock_main
UpdateCTestConfiguration  from :/tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/DartConfiguration.tcl
Parse Config file:/tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/DartConfiguration.tcl
Parse Config file:/tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/DartConfiguration.tcl
Test project /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: my_tests

1: Test command: /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/tests/my_tests
1: Working Directory: /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/build/tests
1: Test timeout computed to be: 1500
1: Running main() from /usr/src/googletest/googletest/src/gtest_main.cc
1: [==========] Running 1 test from 1 test suite.
1: [----------] Global test environment set-up.
1: [----------] 1 test from TestDummy
1: [ RUN      ] TestDummy.AlwaysFail
1: /tmp/homework_checker/build_injected_cpptests_8785db534cb88f36ba5de4ac5d929f3a/tests/test_dummy.cpp:4: Failure
1: Expected equality of these values:
1:   1
1:   0
1: [  FAILED  ] TestDummy.AlwaysFail (0 ms)
1: [----------] 1 test from TestDummy (0 ms total)
1: 
1: [----------] Global test environment tear-down
1: [==========] 1 test from 1 test suite ran. (1 ms total)
1: [  PASSED  ] 0 tests.
1: [  FAILED  ] 1 test, listed below:
1: [  FAILED  ] TestDummy.AlwaysFail
1: 
1:  1 FAILED TEST
1/1 Test #1: my_tests .........................***Failed    0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.00 sec

The following tests FAILED:
	  1 - my_tests (Failed)


Sample homework | Bash task | Test wrong output

stderr

Given input: ''
Your output 'Hello World!
Another line
test_me.sh'
Expected output: 'Different output that doesn't match generated one'

stdout

Hello World!
Another line
test_me.sh


Sample homework | Build failure task | Build succeeded

stderr

/tmp/homework_checker/task_2_c2e754d0b575ad7cbb5ae1197e16ed0c/main.cpp: In function ‘int main(int, const char**)’:
/tmp/homework_checker/task_2_c2e754d0b575ad7cbb5ae1197e16ed0c/main.cpp:2:11: error: ‘stdout’ was not declared in this scope
    2 |   fprintf(stdout, "%s %s output\n", argv[1], argv[2]);
      |           ^~~~~~
/tmp/homework_checker/task_2_c2e754d0b575ad7cbb5ae1197e16ed0c/main.cpp:1:1: note: ‘stdout’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | int main(int argc, char const *argv[]) {
/tmp/homework_checker/task_2_c2e754d0b575ad7cbb5ae1197e16ed0c/main.cpp:2:3: error: ‘fprintf’ was not declared in this scope
    2 |   fprintf(stdout, "%s %s output\n", argv[1], argv[2]);
      |   ^~~~~~~
make[2]: *** [CMakeFiles/main.dir/build.make:76: CMakeFiles/main.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/main.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

stdout

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/homework_checker/task_2_c2e754d0b575ad7cbb5ae1197e16ed0c/build
[ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o


Sample homework | CMake build arithmetics task | Test float arithmetics

stderr

Given input: '2.15 5'
Your output '7.0'
Expected output: '7.15'

stdout

7


Sample homework | Simple cpp tasks | Wrong output fail

stderr

Given input: ''
Your output 'This is a long test output that we expect to be produced by the code. We will compare the output to this EXACTLY.'
Expected output: 'Unexpected output.'

stdout

This is a long test output that we expect to be produced by the code. We will compare the output to this EXACTLY.



With ❤️ from Homework Bot 🤖

Clone this wiki locally