Commit 081c6536 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Steven Rostedt (VMware)
Browse files

tools: bootconfig: Add bootconfig test script

Add a bootconfig test script to ensure the tool and
boot config parser are working correctly.

Link: http://lkml.kernel.org/r/157867224728.17873.18114241801246589416.stgit@devnote2



Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 950313eb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -16,5 +16,8 @@ bootconfig: ../../lib/bootconfig.c main.c $(HEADER)
install: $(PROGS)
install: $(PROGS)
	install bootconfig $(DESTDIR)$(bindir)
	install bootconfig $(DESTDIR)$(bindir)


test: bootconfig
	./test-bootconfig.sh

clean:
clean:
	$(RM) -f *.o bootconfig
	$(RM) -f *.o bootconfig
+5 −0
Original line number Original line Diff line number Diff line
key =	# comment
	"value1",	  # comment1
	"value2" 	  # comment2
,
	"value3"
+2 −0
Original line number Original line Diff line number Diff line
# Array must be comma separated.
key = "value1" "value2"
+4 −0
Original line number Original line Diff line number Diff line
# do not start keyword with .
key {
  .word = 1
}
+1 −0
Original line number Original line Diff line number Diff line
# Wrong boot config: comment only
Loading