Skip to content

Commit

Permalink
Merge branch 'pan/fix_jenkins_windows_maint-r15' into maint-r15
Browse files Browse the repository at this point in the history
* pan/fix_jenkins_windows_maint-r15:
  Fix compilation of examples and tc names on windows
  • Loading branch information
Erlang/OTP committed Aug 16, 2012
2 parents 6c55f07 + 8662ae8 commit 72fbdab
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
28 changes: 18 additions & 10 deletions lib/mnesia/test/Makefile
Expand Up @@ -52,24 +52,29 @@ MODULES= \
mnesia_cost \
mnesia_dbn_meters

MnesiaExamplesDir := ../examples
DocExamplesDir := ../doc/src/

ExampleModules = \
DocExampleModules = \
company \
company_o \
bup \
mnesia_meter \
mnesia_tpcb
ExamplesHrl = \
bup

DocExamplesHrl = \
company.hrl \
company_o.hrl

ERL_FILES= $(MODULES:%=%.erl) $(ExampleModules:%=$(MnesiaExamplesDir)/%.erl)
ExamplesDir := ../examples/

ExampleModules = \
mnesia_meter \
mnesia_tpcb

HRL_FILES= mnesia_test_lib.hrl $(ExamplesHrl:%=$(MnesiaExamplesDir)/%)
ERL_FILES= $(MODULES:%=%.erl) $(DocExampleModules:%=$(DocExamplesDir)/%.erl) $(ExampleModules:%=$(ExamplesDir)/%.erl)

HRL_FILES= mnesia_test_lib.hrl $(DocExamplesHrl:%=$(DocExamplesDir)/%)

TARGET_FILES= \
$(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(ExampleModules:%=$(EBIN)/%.$(EMULATOR))
$(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(DocExampleModules:%=$(EBIN)/%.$(EMULATOR)) $(ExampleModules:%=$(EBIN)/%.$(EMULATOR))

INSTALL_PROGS= $(TARGET_FILES)

Expand All @@ -91,7 +96,10 @@ EBIN = .

tests debug opt: $(TARGET_FILES)

$(EBIN)/%.beam: $(MnesiaExamplesDir)/%.erl
$(EBIN)/%.beam: $(DocExamplesDir)/%.erl
$(ERLC) -bbeam $(ERL_COMPILE_FLAGS) -o$(EBIN) $<

$(EBIN)/%.beam: $(ExamplesDir)/%.erl
$(ERLC) -bbeam $(ERL_COMPILE_FLAGS) -o$(EBIN) $<

clean:
Expand Down
22 changes: 11 additions & 11 deletions lib/mnesia/test/mnesia_consistency_test.erl
Expand Up @@ -100,7 +100,7 @@ groups() ->
{group, updates_during_checkpoint_iteration},
{group, load_table_with_activated_checkpoint},
{group,
add_table_copy_to_table_with_activated_checkpoint}]},
add_table_copy_to_table_checkpoint}]},
{updates_during_checkpoint_activation, [],
[updates_during_checkpoint_activation_2_ram,
updates_during_checkpoint_activation_2_disc,
Expand All @@ -116,10 +116,10 @@ groups() ->
[load_table_with_activated_checkpoint_ram,
load_table_with_activated_checkpoint_disc,
load_table_with_activated_checkpoint_disc_only]},
{add_table_copy_to_table_with_activated_checkpoint, [],
[add_table_copy_to_table_with_activated_checkpoint_ram,
add_table_copy_to_table_with_activated_checkpoint_disc,
add_table_copy_to_table_with_activated_checkpoint_disc_only]},
{add_table_copy_to_table_checkpoint, [],
[add_table_copy_to_table_checkpoint_ram,
add_table_copy_to_table_checkpoint_disc,
add_table_copy_to_table_checkpoint_disc_only]},
{backup_consistency, [],
[{group, interupted_install_fallback},
{group, interupted_uninstall_fallback},
Expand Down Expand Up @@ -952,16 +952,16 @@ view(Source, Mod) ->

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

add_table_copy_to_table_with_activated_checkpoint_ram(suite) -> [];
add_table_copy_to_table_with_activated_checkpoint_ram(Config) when is_list(Config) ->
add_table_copy_to_table_checkpoint_ram(suite) -> [];
add_table_copy_to_table_checkpoint_ram(Config) when is_list(Config) ->
add_table_copy_to_table_with_activated_checkpoint(ram_copies, Config).

add_table_copy_to_table_with_activated_checkpoint_disc(suite) -> [];
add_table_copy_to_table_with_activated_checkpoint_disc(Config) when is_list(Config) ->
add_table_copy_to_table_checkpoint_disc(suite) -> [];
add_table_copy_to_table_checkpoint_disc(Config) when is_list(Config) ->
add_table_copy_to_table_with_activated_checkpoint(disc_copies, Config).

add_table_copy_to_table_with_activated_checkpoint_disc_only(suite) -> [];
add_table_copy_to_table_with_activated_checkpoint_disc_only(Config) when is_list(Config) ->
add_table_copy_to_table_checkpoint_disc_only(suite) -> [];
add_table_copy_to_table_checkpoint_disc_only(Config) when is_list(Config) ->
add_table_copy_to_table_with_activated_checkpoint(disc_only_copies, Config).

add_table_copy_to_table_with_activated_checkpoint(Type,Config) ->
Expand Down

0 comments on commit 72fbdab

Please sign in to comment.