--- /dev/null
+# Copied from drivers/Makefile.inc
+CPPFLAGS+= -D_MINIX -D_NETBSD_SOURCE
+LDADD+= -lminlib -lcompat_minix
+DPADD+= ${LIBMINLIB} ${LIBCOMPAT_MINIX}
+BINDIR?=/usr/sbin
void test_u32(void)
{
int r;
- unsigned long value;
+ u32_t value;
/* Publish and retrieve. */
r = ds_publish_u32(key_u32, 1234, 0);
printf("DSTEST: MAP test successful!\n");
}
-/* SEF functions and variables. */
-static void sef_local_startup(void);
-
/*===========================================================================*
- * main *
+ * sef_cb_init_fresh *
*===========================================================================*/
-int main(void)
+static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
{
- /* SEF local startup. */
- sef_local_startup();
-
/* Run all the tests. */
test_u32();
test_str();
test_map();
test_label();
- return 0;
+ return OK;
}
-
/*===========================================================================*
* sef_local_startup *
*===========================================================================*/
-static void sef_local_startup()
+static void sef_local_startup(void)
{
- /* Let SEF perform startup. */
- sef_startup();
+ /* Let SEF perform startup. */
+ sef_setcb_init_fresh(sef_cb_init_fresh);
+
+ sef_startup();
}
+/*===========================================================================*
+ * main *
+ *===========================================================================*/
+int main(void)
+{
+ /* SEF local startup. */
+ sef_local_startup();
+
+ return 0;
+}
PWD=`pwd`
-service up ${PWD}/subs -config ${PWD}/system.conf -script ${PWD}/down
-service up ${PWD}/dstest -config ${PWD}/system.conf -script ${PWD}/down
+service up ${PWD}/subs -config system.conf -script /etc/rs.single
+service up ${PWD}/dstest -config system.conf -script /etc/rs.single
+service down subs