Code Monkey home page Code Monkey logo

Comments (7)

zuckschwerdt avatar zuckschwerdt commented on July 17, 2024

Actually the makefile will run

python bin/run_test.py -I time --first-line

thus ignoring the time stamps ;)

from rtl_433_tests.

gvanem avatar gvanem commented on July 17, 2024

That makes even more errors. py -2 bin\run_test.py -c ..\rtl_433.exe -I time --first-line acuri*:

## Failed: F:\gv\dx-radio\RTL_433\rtl_433_tests\tests\acurite\08\ext-lowbattery.cu8: invalid json output
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
## Failed: F:\gv\dx-radio\RTL_433\rtl_433_tests\tests\acurite\08\ext-lowbattery.cu8: invalid json output
time      : @0.044108s

But adding a -c NUL (or -c /dev/null for non-Windows) to the args, makes it perfect.

Thanks for clearing that up.

from rtl_433_tests.

zuckschwerdt avatar zuckschwerdt commented on July 17, 2024

If you have default config files for rtl_433 installed that might indeed mess with the tests script.
A short form to disable config files is -c 0.

from rtl_433_tests.

gvanem avatar gvanem commented on July 17, 2024

default config? I cooked one from rtl_433.conf.example.

But the run_test.py is so obfuscated, I fail to understand how it finds the files for testing. Besides many tests crashes. E.g. ..\rtl_433.exe -F json -s 250000 -r tests\acurite_3in1\g007_433.92M_250k.cu8
crashes inside print_kv_data(). Another PR ?

from rtl_433_tests.

zuckschwerdt avatar zuckschwerdt commented on July 17, 2024

I meant a config at the default location, i.e. loaded by default.
No crash with that line here, perhaps you can trace where the fault is? Or even better PR a fix :)

from rtl_433_tests.

gvanem avatar gvanem commented on July 17, 2024

I meant a config at the default location, i.e. loaded by default.

Is there a single default location? AFAICS it tries to load rtl_433.conf from several places. I have only 1 where rtl_433.exe is.

The crash was easy though. term_get_columns() returned gibberish when used from Python's Popen(). Hence:

--- a/src/term_ctl.c 2018-12-22 13:39:06
+++ b/src/term_ctl.c 2018-12-28 10:45:24
@@ -169,7 +169,9 @@
     if (!console->hnd || console->hnd == INVALID_HANDLE_VALUE)
        return (80);

-    GetConsoleScreenBufferInfo(console->hnd, &c_info);
+    if (!GetConsoleScreenBufferInfo(console->hnd, &c_info))
+       return (80);
+

from rtl_433_tests.

zuckschwerdt avatar zuckschwerdt commented on July 17, 2024

The paths on Windows are here: https://github.com/merbanan/rtl_433/blob/master/src/compat_paths.c#L40
Thanks for the fix, patched with merbanan/rtl_433@e843853

from rtl_433_tests.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.