Permalink
Browse files

add an utility.

  • Loading branch information...
1 parent 9690c50 commit 115842ab472df045892fbc7e0f3f40e01ffc3c6d @vmi committed Nov 26, 2016
Showing with 10 additions and 0 deletions.
  1. +10 −0 tools/check-command.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+dir="src/main/java/jp/vmi/selenium/selenese/command"
+
+cd "$dir"
+
+diff -U 0 \
+ <(egrep -l "extends (AbstractCommand|[A-Za-z0-9]+LoopImpl)" *.java | sed 's/\.java$//' | egrep -v '^Assertion$|^BuiltInCommand$|^Store$|LoopImpl' | sort) \
+ <(sed -En 's/^[ \t]*addConstructor\(([A-Za-z0-9]+)\.class.*/\1/p' CommandFactory.java | sort) \
+ | fgrep -v '@@'

0 comments on commit 115842a

Please sign in to comment.