mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
test/config_args: remove
The main function with string arguments is deprecated and so is this test. Ref #1987
This commit is contained in:
parent
ca38375107
commit
a9f4baf674
@ -1,40 +0,0 @@
|
||||
build "core init drivers/timer test/config_args"
|
||||
|
||||
create_boot_directory
|
||||
|
||||
install_config {
|
||||
<config>
|
||||
<parent-provides>
|
||||
<service name="ROM"/>
|
||||
<service name="RAM"/>
|
||||
<service name="CPU"/>
|
||||
<service name="RM"/>
|
||||
<service name="PD"/>
|
||||
<service name="IRQ"/>
|
||||
<service name="IO_PORT"/>
|
||||
<service name="LOG"/>
|
||||
</parent-provides>
|
||||
<default-route>
|
||||
<any-service> <parent/> <any-child/> </any-service>
|
||||
</default-route>
|
||||
<start name="timer">
|
||||
<resource name="RAM" quantum="1M"/>
|
||||
<provides><service name="Timer"/></provides>
|
||||
</start>
|
||||
<start name="test-config_args">
|
||||
<resource name="RAM" quantum="10M"/>
|
||||
<config>
|
||||
<arg value="test-config_args"/>
|
||||
<arg value="-testarg"/>
|
||||
</config>
|
||||
</start>
|
||||
</config>
|
||||
}
|
||||
|
||||
build_boot_image "core ld.lib.so init timer test-config_args libc.lib.so libm.lib.so"
|
||||
|
||||
append qemu_args "-nographic -m 64"
|
||||
|
||||
run_genode_until {--- end of config args test ---} 10
|
||||
|
||||
puts "Test succeeded"
|
@ -1,42 +0,0 @@
|
||||
/*
|
||||
* \brief 'main()' arguments test
|
||||
* \author Christian Prochaska
|
||||
* \date 2012-04-19
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2012-2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <base/log.h>
|
||||
#include <util/string.h>
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
log("--- config args test started ---");
|
||||
|
||||
if (argc != 2) {
|
||||
error("argc is not as expected");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (strcmp(argv[0], "test-config_args") != 0) {
|
||||
error("argv[0] is not as expected");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "-testarg") != 0) {
|
||||
error("argv[1] is not as expected");
|
||||
return -1;
|
||||
}
|
||||
|
||||
log("--- end of config args test ---");
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
TARGET = test-config_args
|
||||
SRC_CC = main.cc
|
||||
LIBS = posix
|
Loading…
x
Reference in New Issue
Block a user