1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 2f08c3bdfSopenharmony_ci/* 3f08c3bdfSopenharmony_ci * Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz> 4f08c3bdfSopenharmony_ci * 5f08c3bdfSopenharmony_ci * Invalid boolean expression test. 6f08c3bdfSopenharmony_ci */ 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ci#include "tst_test.h" 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_cistatic void do_test(void) 11f08c3bdfSopenharmony_ci{ 12f08c3bdfSopenharmony_ci tst_res(TPASS, "Test passed!"); 13f08c3bdfSopenharmony_ci} 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_cistatic const char *kconfigs[] = { 16f08c3bdfSopenharmony_ci "\"CONFIG_FOO=val\"", 17f08c3bdfSopenharmony_ci "CONFIG_a=1", 18f08c3bdfSopenharmony_ci "CONFIG_FOO=", 19f08c3bdfSopenharmony_ci "CONFIG_DEFAULT_HOSTNAME=\"(none", 20f08c3bdfSopenharmony_ci "CONFIG_DEFAULT_HOSTNAME=\"(none)\"a", 21f08c3bdfSopenharmony_ci "CONFIG_BROKEN=a\" | CONFIG_FOO", 22f08c3bdfSopenharmony_ci "CONFIG_BROKEN=a=", 23f08c3bdfSopenharmony_ci NULL 24f08c3bdfSopenharmony_ci}; 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_cistatic struct tst_test test = { 27f08c3bdfSopenharmony_ci .test_all = do_test, 28f08c3bdfSopenharmony_ci .needs_kconfigs = kconfigs, 29f08c3bdfSopenharmony_ci}; 30