Skip to content

Commit

Permalink
Fixed testsuite.
Browse files Browse the repository at this point in the history
Failed due to missing /etc/sysconfig/console at OBS' build host.
  • Loading branch information
mchf committed Nov 12, 2012
1 parent 91c8901 commit a9a26bb
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
5 changes: 5 additions & 0 deletions testsuite/tests/include.out
@@ -0,0 +1,5 @@
Read .target.tmpdir nil
Log Failed to set temporary directory: nil
Read .probe.architecture "i386"
Read .sysconfig.console.CONSOLE_ENCODING nil
Execute .target.bash_output "locale -k charmap" $["exit":0, "stderr":"", "stdout":""]
24 changes: 23 additions & 1 deletion testsuite/tests/include.ycp
@@ -1,4 +1,26 @@
// A basic syntax check
{
include "network/lan/hardware.ycp";
// wonderful, isn't it? Believe me, you can't live without that.
// At least if you need Encoding.ycp which is included from somewhere.
import "Testsuite";

map READ = $[
"probe" : $[
"architecture" : "i386",
],
];

map EXEC = $[
"target": $[
"bash_output": $[
"stdout": "",
"stderr": "",
"exit": 0
],
],
];

Testsuite::Init( [ READ, $[], EXEC ], nil);

include "network/lan/hardware.ycp";
}
5 changes: 5 additions & 0 deletions testsuite/tests/udev.out
@@ -0,0 +1,5 @@
Read .target.tmpdir nil
Log Failed to set temporary directory: nil
Read .probe.architecture "i386"
Read .sysconfig.console.CONSOLE_ENCODING nil
Execute .target.bash_output "locale -k charmap" $["exit":0, "stderr":"", "stdout":""]
20 changes: 20 additions & 0 deletions testsuite/tests/udev.ycp
@@ -1,5 +1,25 @@
{
import "Assert";
import "Testsuite";

map READ = $[
"probe" : $[
"architecture" : "i386",
],
];

map EXEC = $[
"target": $[
"bash_output": $[
"stdout": "",
"stderr": "",
"exit": 0
],
],
];

Testsuite::Init( [ READ, $[], EXEC ], nil);

import "LanItems";

include "network/routines.ycp";
Expand Down

0 comments on commit a9a26bb

Please sign in to comment.