Skip to content

Tests: make test fails #15

Description

@Laczen

When issuing the make test (Ubuntu 24.04) under I am getting the following result:

(.venv) ~/embedded/detools$ make test
env CFLAGS=--coverage python3 setup.py test
/home/batman/nuttxspace/.venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/home/batman/nuttxspace/.venv/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'test'
make: *** [Makefile:27: test] Error 1

When issuing make under c/tst I am getting the following result:

(.venv) ~/embedded/detools/c/tst$ make
make -C .. OPT=-O0 CFLAGS_EXTRA="-coverage"
make[1]: Entering directory '/home/batman/embedded/detools/c'
gcc -g -Wall -Wextra -Wdouble-promotion -Wfloat-equal -Wformat=2 -Wshadow -Werror -std=c99 -O0 -Iheatshrink -coverage heatshrink/heatshrink_decoder.c detools.c main.c -llzma -o detools
make[1]: Leaving directory '/home/batman/embedded/detools/c'
make all
make[1]: Entering directory '/home/batman/embedded/detools/c/tst'
make build/app
make[2]: Entering directory '/home/batman/embedded/detools/c/tst'
make[2]: 'build/app' is up to date.
make[2]: Leaving directory '/home/batman/embedded/detools/c/tst'
build/app   -r build/report.json

――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

  Test:     test_detools::apply_patch_foo
  Messages: Failed with 'Bad compression.' (-4).
  Error:    -4 is not equal to 2780 (0xfffffffc, 0xadc)

  Assert traceback (most recent call first):
    at /home/batman/embedded/detools/c/tst/test_detools.c:329 in assert_apply_patch()
        ASSERT_EQ(res, to_size);
    at /home/batman/embedded/detools/c/tst/test_detools.c:442 in apply_patch_foo()
        assert_apply_patch("../../tests/files/foo/old",

FAILED test_detools::apply_patch_foo (294ms)

Tests: 1 failed, 80 skipped, 81 total
Time: 294ms
make[1]: *** [test.mk:42: all] Error 1
make[1]: Leaving directory '/home/batman/embedded/detools/c/tst'
make: *** [Makefile:13: default] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions